project(CudaResolveSymbolOfMy CUDA C++)

#add_subdirectory(sub1)

find_package(CudaResolveSymbolOfMySub1)
add_executable(${PROJECT_NAME} main.cu)

set_target_properties(${PROJECT_NAME}
        PROPERTIES
            CUDA_SEPARABLE_COMPILATION ON
            CUDA_RESOLVE_DEVICE_SYMBOLS ON
            POSITION_INDEPENDENT_CODE ON
)
target_link_libraries(
        ${PROJECT_NAME}
            PRIVATE
                CudaResolveSymbolOfMySub1::CudaResolveSymbolOfMySub1
)
